
package com.azxc.rapid.plus.system.wrapper;

import com.azxc.rapid.core.mp.support.BaseEntityWrapper;
import com.azxc.rapid.core.tool.utils.BeanUtil;
import com.azxc.rapid.plus.system.entity.RoleConfigManager;
import com.azxc.rapid.plus.system.vo.RoleConfigManagerVO;

/**
 * 角色管理包装类,返回视图层所需的字段
 * @since 2023-07-06
 */
public class RoleConfigManagerWrapper extends BaseEntityWrapper<RoleConfigManager, RoleConfigManagerVO>  {

	public static RoleConfigManagerWrapper build() {
		return new RoleConfigManagerWrapper();
 	}

	@Override
	public RoleConfigManagerVO entityVO(RoleConfigManager roleConfigManager) {
		RoleConfigManagerVO roleConfigManagerVO = BeanUtil.copy(roleConfigManager, RoleConfigManagerVO.class);

		//User createUser = UserCache.getUser(roleConfigManager.getCreateUser());
		//User updateUser = UserCache.getUser(roleConfigManager.getUpdateUser());
		//roleConfigManagerVO.setCreateUserName(createUser.getName());
		//roleConfigManagerVO.setUpdateUserName(updateUser.getName());

		return roleConfigManagerVO;
	}

}
